package com.se.io;


import cn.hutool.core.io.file.FileWriter;

import java.util.ArrayList;

public class WriteTxtFileHutool {
    public static void main(String[] args) throws Exception {
        String filename = "D:/out.txt";

        FileWriter fw = new FileWriter(filename,"GBK");

        ArrayList<String> slist = new ArrayList<String>();
        slist.add("闵其科");
        slist.add("11122");
        fw.writeLines(slist);


    }


}
